package com.yan.design.two.behavior.s9.s2.s;

import com.yan.design.two.behavior.s9.s2.AbstractState;
import com.yan.design.two.behavior.s9.s2.Contest;

/**
 * 9. 状态模式
 *      每个状态类
 * @author shengren.yan
 * @create 2022-08-14
 */
public class BeeDState extends AbstractState {

    @Override
    public String getState() {
        return "BB 状态";
    }

    // 审核  BB 审核后变成 CC
    @Override
    public void check(Contest c) {
        System.out.println(" BB发布后变成CC");
       c.setState(new CeeDState());
    }
}
